package services;

import dao.EmployeeDao;
import entity.Employee;

import java.util.List;

/**
 * @program: personnel_management_system
 * @description: search service
 * @author: Mr.Sun
 * @create: 2020-05-29 10:24
 **/

public class SearchReqDataService {
    public List<Employee> search(Integer startAge,Integer endAge,Integer startWork,Integer endWork) throws Exception {
        List<Employee> emps = new EmployeeDao().selectByAge(startAge,endAge,startWork,endWork);
        return  emps;
    }

}
